package org.lyl.taobao.api.entity;

import lombok.Data;

/**
 * @Author: Re
 * @Date: 2021/3/29 12:59
 */
@Data
public class Order {
    private Integer orderId;
    private Integer orderUserId;
    private Integer orderCommodityId;
    private Integer orderMerchantId;

    public Order() {
    }

    public Order(Integer orderUserId, Integer orderCommodityId, Integer orderMerchantId) {
        this.orderUserId = orderUserId;
        this.orderCommodityId = orderCommodityId;
        this.orderMerchantId = orderMerchantId;
    }

    public Order(Integer orderId, Integer orderUserId, Integer orderCommodityId, Integer orderMerchantId) {
        this.orderId = orderId;
        this.orderUserId = orderUserId;
        this.orderCommodityId = orderCommodityId;
        this.orderMerchantId = orderMerchantId;
    }

    @Override
    public String toString() {
        return "订单：\n" +
                "用户id" + orderUserId +
                ", 商品id" + orderCommodityId ;
    }
}
